package com.pond.pond.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.pond.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 社区帖子图片对象 community_post_image
 *
 * @author ruoyi
 * @date 2024-03-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("community_post_image")
public class CommunityPostImage extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 图片ID */
    @TableId(type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 帖子ID */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long postId;

    /** 图片URL */
    private String imageUrl;

    /** 图片排序 */
    private Integer sortOrder;

    /** 图片描述 */
    private String description;
}